<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<ul id="list">
			<li>aaa</li>
			<li>aaa</li>
			<li>aaa</li>
			<li>aaa</li>
			
		</ul>
		
		<div id="box">
			123
			<span id="aa">
				nodeType
			</span>
			<p>p</p>
			<ul>
				<li>1:元素节点</li>
				<li>2:属性节点</li>
				<li>3:文本节点</li>		
			</ul>
			
		</div>
		<script type="text/javascript">
			var box = document.getElementById("box");
			var attrNode = box.getAttributeNode("id");
			console.log(attrNode.nodeType);
			console.log(attrNode.nodeName);
			console.log(attrNode.nodeValue);
			
			var 

		</script>
	</body>
</html>
